package cn.net.xinyi.xs;

/**
 * Constant values used throughout the application.
 * 
 * 
 * @author <a href="mailto:caihualin2009@gmail.com">Cai Hua</a>
 */
public class Constants {
	// ~ Static fields/initializers
	// =============================================

	/**
	 * The name of the ResourceBundle used in this application
	 */
	public static final String BUNDLE_KEY = "ApplicationResources";

	/**
	 * The name of the ResourceBundle used in this displaytag
	 */
	public static final String BUNDLE_PAGE_KEY = "displaytag";

	// �����Ļ������ϵͳ���Ե���KEY
	public static final String BUNDLE_SYSTEM_KEY = "system";

	/**
	 * File separator from System properties
	 */
	public static final String FILE_SEP = System.getProperty("file.separator");

	/**
	 * User home from System properties
	 */
	public static final String USER_HOME = System.getProperty("user.home")
			+ FILE_SEP;

	/**
	 * The name of the configuration hashmap stored in application scope.
	 */
	public static final String CONFIG = "appConfig";

	/**
	 * Session scope attribute that holds the locale set by the user. By setting
	 * this key to the same one that Struts uses, we get synchronization in
	 * Struts w/o having to do extra work or have two session-level variables.
	 */
	public static final String PREFERRED_LOCALE_KEY = "org.apache.struts2.action.LOCALE";

	/**
	 * The request scope attribute under which an editable user form is stored
	 */
	public static final String USER_KEY = "userForm";

	/**
	 * The request scope attribute that holds the user list
	 */
	public static final String USER_LIST = "userList";

	/**
	 * The request scope attribute for indicating a newly-registered user
	 */
	public static final String REGISTERED = "registered";

	/**
	 * The name of the Administrator role, as specified in web.xml
	 */
	public static final String ADMIN_ROLE = "ROLE_ADMIN";

	/**
	 * The name of the User role, as specified in web.xml
	 */
	public static final String USER_ROLE = "ROLE_USER";

	/**
	 * The name of the user's role list, a request-scoped attribute when
	 * adding/editing a user.
	 */
	public static final String USER_ROLES = "userRoles";

	/**
	 * The name of the available roles list, a request-scoped attribute when
	 * adding/editing a user.
	 */
	public static final String AVAILABLE_ROLES = "availableRoles";

	/**
	 * The name of the CSS Theme setting.
	 */
	public static final String CSS_THEME = "csstheme";

	// ������Ϣ��ROOT
	public static final String ROOT = "root";

	// ������Ϣ���ɹ�
	public static final String SUCCESS = "success";

	// ������Ϣ��ʧ��
	public static final String FAILED = "failed";

	// ������Ϣ������
	public static final String ERROR = "error";

	// Ȩ��KEY
	public static final String USERRIGHT_CASEEVENT = "401";

	public static final String USERRIGHT_DOSSIER = "402";

	public static final String USERRIGHT_SOFTWARE = "403";

	public static final String USERRIGHT_WORKDYNAMIC = "405";

	public static final String USERRIGHT_FORUM = "406";
}
